#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main()
{
	int count = 0;
	char name[20] = { 0 };
	while (scanf("%s", name) != EOF)
	{
		count++;
	}
	printf("%d", count/2);
	return 0;
}